package com.qf.smsplatform.mapper;
/*2021/10/31*/

import com.qf.smsplatform.pojo.TSearchParmas;
import com.qf.smsplatform.pojo.TSearchParmasSql;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;

/**
 * @YuTao
 */
public interface TSearchParmasMapper {

//    @Select("select * from t_search_parmas")
    @SelectProvider(type = TSearchParmasSql.class,method = "selectAll")
    List<TSearchParmas> selectAll();

    @Insert("insert into t_search_parmas(name,cloum,type,t_order,state) values (#{name},#{cloum},#{type},#{tOrder},#{state})")
    void insertSearchParams(TSearchParmas tSearchParmas);

    void updateSearchParams(TSearchParmas tSearchParmas);

    @Delete("delete from t_search_parmas where id = #{id}")
//    @SelectProvider()
    void deleteSearchParams(int id);

}
